<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.1">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.css">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/pace-js@1/themes/blue/pace-theme-minimal.css">
  <script src="//cdn.jsdelivr.net/npm/pace-js@1/pace.min.js"></script>

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"blog.nasx.top","root":"/","scheme":"Muse","version":"7.7.2","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":true},"copycode":{"enable":true,"show_result":true,"style":"mac"},"back2top":{"enable":true,"sidebar":false,"scrollpercent":true},"bookmark":{"enable":true,"color":"#222","save":"auto"},"fancybox":true,"mediumzoom":true,"lazyload":true,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":true,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="客户端api获取ev请求示例 1http:&#x2F;&#x2F;192.168.0.246&#x2F;mastern&#x2F;api&#x2F;ev.do?t&#x3D;wd  定义    参数 涵义    wd 微端ev（非小游戏类的类型）   wx 微信小游戏ev   op oppo小游戏ev   qq qq小游戏ev   zj 字节跳动小游戏ev">
<meta property="og:type" content="article">
<meta property="og:title" content="mastern api">
<meta property="og:url" content="https://blog.nasx.top/posts/api.mastern/index.html">
<meta property="og:site_name" content="Fart">
<meta property="og:description" content="客户端api获取ev请求示例 1http:&#x2F;&#x2F;192.168.0.246&#x2F;mastern&#x2F;api&#x2F;ev.do?t&#x3D;wd  定义    参数 涵义    wd 微端ev（非小游戏类的类型）   wx 微信小游戏ev   op oppo小游戏ev   qq qq小游戏ev   zj 字节跳动小游戏ev">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2019-08-16T10:47:51.000Z">
<meta property="article:modified_time" content="2019-08-16T10:47:51.000Z">
<meta property="article:author" content="Fart">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://blog.nasx.top/posts/api.mastern/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true
  };
</script>

  <title>mastern api | Fart</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <div>
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Fart</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>


<nav class="site-nav">
  
  <ul id="menu" class="menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>首页</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-fw fa-tags"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-fw fa-th"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>归档</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>

</nav>
  <div class="site-search">
    <div class="popup search-popup">
    <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocorrect="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result"></div>

</div>
<div class="search-pop-overlay"></div>

  </div>
</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>
  <div class="reading-progress-bar"></div>
  <a role="button" class="book-mark-link book-mark-link-fixed"></a>

  <a href="https://github.com/fengbrute" class="github-corner" title="Follow me on GitHub" aria-label="Follow me on GitHub" rel="noopener" target="_blank"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content">
            

  <div class="posts-expand">
      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block " lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://blog.nasx.top/posts/api.mastern/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.jpg">
      <meta itemprop="name" content="Fart">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Fart">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          mastern api
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2019-08-16 18:47:51" itemprop="dateCreated datePublished" datetime="2019-08-16T18:47:51+08:00">2019-08-16</time>
            </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/%E5%B7%A5%E4%BD%9C/" itemprop="url" rel="index"><span itemprop="name">工作</span></a>
                </span>
                  ，
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/%E5%B7%A5%E4%BD%9C/%E6%8C%87%E4%B8%8A%E7%BC%A4%E7%BA%B7/" itemprop="url" rel="index"><span itemprop="name">指上缤纷</span></a>
                </span>
                  ，
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/%E5%B7%A5%E4%BD%9C/%E6%8C%87%E4%B8%8A%E7%BC%A4%E7%BA%B7/api/" itemprop="url" rel="index"><span itemprop="name">api</span></a>
                </span>
            </span>

          
            <span id="/posts/api.mastern/" class="post-meta-item leancloud_visitors" data-flag-title="mastern api" title="阅读次数">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">阅读次数：</span>
              <span class="leancloud-visitors-count"></span>
            </span>
  
  <span class="post-meta-item">
    
      <span class="post-meta-item-icon">
        <i class="fa fa-comment-o"></i>
      </span>
      <span class="post-meta-item-text">Valine：</span>
    
    <a title="valine" href="/posts/api.mastern/#valine-comments" itemprop="discussionUrl">
      <span class="post-comments-count valine-comment-count" data-xid="/posts/api.mastern/" itemprop="commentCount"></span>
    </a>
  </span>
  
  <br>
            <span class="post-meta-item" title="本文字数">
              <span class="post-meta-item-icon">
                <i class="fa fa-file-word-o"></i>
              </span>
                <span class="post-meta-item-text">本文字数：</span>
              <span>2.7k</span>
            </span>
            <span class="post-meta-item" title="阅读时长">
              <span class="post-meta-item-icon">
                <i class="fa fa-clock-o"></i>
              </span>
                <span class="post-meta-item-text">阅读时长 &asymp;</span>
              <span>7 分钟</span>
            </span>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h1 id="客户端api"><a href="#客户端api" class="headerlink" title="客户端api"></a>客户端api</h1><h2 id="获取ev"><a href="#获取ev" class="headerlink" title="获取ev"></a>获取ev</h2><p>请求示例</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http:&#x2F;&#x2F;192.168.0.246&#x2F;mastern&#x2F;api&#x2F;ev.do?t&#x3D;wd</span><br></pre></td></tr></table></figure>

<p>定义</p>
<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>wd</td>
<td>微端ev（非小游戏类的类型）</td>
</tr>
<tr>
<td>wx</td>
<td>微信小游戏ev</td>
</tr>
<tr>
<td>op</td>
<td>oppo小游戏ev</td>
</tr>
<tr>
<td>qq</td>
<td>qq小游戏ev</td>
</tr>
<tr>
<td>zj</td>
<td>字节跳动小游戏ev</td>
</tr>
</tbody></table>
<a id="more"></a>

<p>返回示例</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    &quot;data&quot;: &quot;5&quot;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h2 id="获取gv"><a href="#获取gv" class="headerlink" title="获取gv"></a>获取gv</h2><p>请求示例</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http:&#x2F;&#x2F;192.168.0.246&#x2F;mastern&#x2F;api&#x2F;gv.do?game&#x3D;20001</span><br></pre></td></tr></table></figure>

<p>返回示例</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    &quot;data&quot;: &#123;</span><br><span class="line">        &quot;gv&quot;: &quot;4&quot;, </span><br><span class="line">        &quot;rv&quot;: &quot;2&quot;, </span><br><span class="line">        &quot;sv&quot;: &quot;0&quot;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>gv</td>
<td>gv版本</td>
</tr>
<tr>
<td>rv</td>
<td>资源版本</td>
</tr>
<tr>
<td>sv</td>
<td>config.json版本</td>
</tr>
</tbody></table>
<h2 id="获取游戏公告"><a href="#获取游戏公告" class="headerlink" title="获取游戏公告"></a>获取游戏公告</h2><p>请求示例</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http:&#x2F;&#x2F;192.168.0.246&#x2F;mastern&#x2F;api&#x2F;anno.do?pf&#x3D;7000004</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>pf</td>
<td>平台标识</td>
</tr>
</tbody></table>
<p>返回示例</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    &quot;data&quot;: &quot;this is a anno&quot;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h1 id="后台部分"><a href="#后台部分" class="headerlink" title="后台部分"></a>后台部分</h1><h2 id="后台登陆"><a href="#后台登陆" class="headerlink" title="后台登陆"></a>后台登陆</h2><p>通用字段涵义说明</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123; &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>callback</td>
<td>ture:无msg返回；false:有msg返回</td>
</tr>
<tr>
<td>data</td>
<td>根数据堆</td>
</tr>
<tr>
<td>noLogin</td>
<td>true:未登录（跳转至登陆页）；false:登陆</td>
</tr>
<tr>
<td>noRight</td>
<td>true:有权限；false:无权限</td>
</tr>
</tbody></table>
<h3 id="1-验证码"><a href="#1-验证码" class="headerlink" title="1. 验证码"></a>1. 验证码</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/auth/changeCaptcha.admin</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>-</td>
<td>-</td>
</tr>
</tbody></table>
<p>返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;</span><br><span class="line">            <span class="attr">"admin"</span>: &#123;</span><br><span class="line">                <span class="attr">"login"</span>: &#123;</span><br><span class="line">                    <span class="attr">"captchaImgUrl"</span>: <span class="string">"http://test3.h5eco.com:1234/code/28ba6951-acd2-4f76-b17b-62516836fccf.jpeg"</span>, </span><br><span class="line">                    <span class="attr">"captchaId"</span>: <span class="string">"28ba6951-acd2-4f76-b17b-62516836fccf"</span></span><br><span class="line">                &#125;, </span><br><span class="line">                <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">            &#125;</span><br><span class="line">        &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>captchaImgUrl</td>
<td>验证码图片</td>
</tr>
<tr>
<td>captchaId</td>
<td>验证码id</td>
</tr>
</tbody></table>
<h3 id="2-登陆"><a href="#2-登陆" class="headerlink" title="2. 登陆"></a>2. 登陆</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/auth/login.admin?name=aldmd&amp;pwd=yanfei&amp;kaptcha=6436&amp;captchaId=5d7cb1a4-a0ee-4bd4-8ff3-f8724d878db2</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>name</td>
<td>username</td>
</tr>
<tr>
<td>pwd</td>
<td>password</td>
</tr>
<tr>
<td>kaptcha</td>
<td>验证码</td>
</tr>
<tr>
<td>captchaId</td>
<td>验证码id(请求验证码命令时会返回)</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br></pre></td><td class="code"><pre><span class="line">#超级管理员数据返回</span><br><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;</span><br><span class="line">            <span class="attr">"admin"</span>: &#123;</span><br><span class="line">                <span class="attr">"user"</span>: &#123;</span><br><span class="line">                    <span class="attr">"token"</span>: <span class="string">"fba5ffc9550418e61e61b967d5714023"</span>, </span><br><span class="line">                    <span class="attr">"superman"</span>: <span class="literal">true</span>, </span><br><span class="line">                    <span class="attr">"name"</span>: <span class="string">"aldmd"</span>, </span><br><span class="line">                    <span class="attr">"nameCn"</span>: <span class="string">"超级管理员"</span></span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>;</span><br><span class="line">        <span class="string">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br><span class="line">#普通账户数据返回</span><br><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;</span><br><span class="line">            <span class="attr">"admin"</span>: &#123;</span><br><span class="line">                <span class="attr">"token"</span>: <span class="string">"5a3ea9b74282502317ba633ead314ea9"</span>, </span><br><span class="line">                <span class="attr">"superman"</span>: <span class="literal">false</span>, </span><br><span class="line">                <span class="attr">"name"</span>: <span class="string">"u1"</span>, </span><br><span class="line">                <span class="attr">"nameCn"</span>: <span class="string">"用户2"</span>, </span><br><span class="line">                <span class="attr">"roleName"</span>: <span class="string">"gcp"</span>, </span><br><span class="line">                <span class="attr">"roleNameCn"</span>: <span class="string">"游戏cp"</span>, </span><br><span class="line">                <span class="attr">"showTab"</span>: <span class="string">"110_210_310_410"</span>, </span><br><span class="line">                <span class="attr">"channels"</span>: <span class="string">"8000001_8000002"</span></span><br><span class="line">            &#125;</span><br><span class="line">        &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span></span><br><span class="line">        <span class="string">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<p>失败返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;</span><br><span class="line">            <span class="attr">"admin"</span>: &#123;</span><br><span class="line">                <span class="attr">"login"</span>: &#123;</span><br><span class="line">                    <span class="attr">"needLogin"</span>: <span class="literal">true</span>, </span><br><span class="line">                    <span class="attr">"captchaImgUrl"</span>: <span class="string">"http://test3.h5eco.com:1234/code/7251b058-b0b7-43b4-98ce-291f023cfefe.jpeg"</span>, </span><br><span class="line">                    <span class="attr">"captchaId"</span>: <span class="string">"7251b058-b0b7-43b4-98ce-291f023cfefe"</span>, </span><br><span class="line">                    <span class="attr">"result"</span>: <span class="string">"验证码错误"</span></span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">true</span></span><br><span class="line">        <span class="string">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>服务端返回的用于校验用户是否已登陆</td>
</tr>
<tr>
<td>superman</td>
<td>是否是超级管理员</td>
</tr>
<tr>
<td>name</td>
<td>username</td>
</tr>
<tr>
<td>nameCn</td>
<td>中文名</td>
</tr>
<tr>
<td>roleName</td>
<td>角色</td>
</tr>
<tr>
<td>roleNameCn</td>
<td>角色中文</td>
</tr>
<tr>
<td>showTab</td>
<td>前端显示权限</td>
</tr>
<tr>
<td>channels</td>
<td>渠道权限（多个时用“_”拼接）</td>
</tr>
</tbody></table>
<h3 id="3-修改密码"><a href="#3-修改密码" class="headerlink" title="3. 修改密码"></a>3. 修改密码</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/auth/changePwd.admin?name=aldmd&amp;pwd=yanfei1&amp;oldPwd=yanfei</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>name</td>
<td>username</td>
</tr>
<tr>
<td>pwd</td>
<td>新密码</td>
</tr>
<tr>
<td>oldPwd</td>
<td>旧密码</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123; &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span></span><br><span class="line">        <span class="string">"noRight"</span>:<span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="4-注销（退出登录）"><a href="#4-注销（退出登录）" class="headerlink" title="4. 注销（退出登录）"></a>4. 注销（退出登录）</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/auth/logout.admin</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>-</td>
<td>-</td>
</tr>
</tbody></table>
<p>返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123; &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>;</span><br><span class="line">        <span class="string">"noRight"</span>:<span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h2 id="用户管理"><a href="#用户管理" class="headerlink" title="用户管理"></a>用户管理</h2><h3 id="获取用户信息"><a href="#获取用户信息" class="headerlink" title="获取用户信息"></a>获取用户信息</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/um/userInfo.admin</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>-</td>
<td>-</td>
</tr>
</tbody></table>
<p>返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;</span><br><span class="line">            <span class="attr">"admin"</span>: &#123;</span><br><span class="line">                <span class="attr">"user"</span>: &#123;</span><br><span class="line">                    <span class="attr">"superman"</span>: <span class="literal">true</span>, </span><br><span class="line">                    <span class="attr">"name"</span>: <span class="string">"aldmd"</span>, </span><br><span class="line">                    <span class="attr">"nameCn"</span>: <span class="string">"超级管理员"</span></span><br><span class="line">                &#125;, </span><br><span class="line">                <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">            &#125;</span><br><span class="line">        &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h2 id="host管理"><a href="#host管理" class="headerlink" title="host管理"></a><code>host</code>管理</h2><h3 id="添加host"><a href="#添加host" class="headerlink" title="添加host"></a>添加<code>host</code></h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/host/add.admin?key=fk1&amp;domain=fk1.h5eco.com&amp;innerIp=192.168.0.248</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>key</td>
<td>服务器的key</td>
</tr>
<tr>
<td>domain</td>
<td>服务器对应的域名</td>
</tr>
<tr>
<td>innerIp</td>
<td>服务器内网ip</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123; &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span></span><br><span class="line">        <span class="string">"noRight"</span>:<span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="修改host"><a href="#修改host" class="headerlink" title="修改host"></a>修改<code>host</code></h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/host/up.admin?key=fk1&amp;domain=fk1.h5eco.com&amp;innerIp=192.168.0.246</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>key</td>
<td>服务器的key</td>
</tr>
<tr>
<td>domain</td>
<td>服务器对应的域名</td>
</tr>
<tr>
<td>innerIp</td>
<td>服务器内网ip</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123; &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span></span><br><span class="line">        <span class="string">"noRight"</span>:<span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="查看host"><a href="#查看host" class="headerlink" title="查看host"></a>查看<code>host</code></h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/host/view.admin</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>key</td>
<td>服务器的key</td>
</tr>
<tr>
<td>domain</td>
<td>服务器对应的域名</td>
</tr>
<tr>
<td>innerIp</td>
<td>服务器内网ip</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;</span><br><span class="line">            <span class="attr">"host"</span>: &#123;</span><br><span class="line">                <span class="attr">"hosts"</span>: &#123;</span><br><span class="line">                    <span class="attr">"fk1"</span>: &#123;</span><br><span class="line">                        <span class="attr">"key"</span>: <span class="string">"fk1"</span>, </span><br><span class="line">                        <span class="attr">"domain"</span>: <span class="string">"fk1.h5eco.com"</span>, </span><br><span class="line">                        <span class="attr">"innerIp"</span>: <span class="string">"192.168.0.248"</span></span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="删除host"><a href="#删除host" class="headerlink" title="删除host"></a>删除<code>host</code></h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/host/del.admin?key=fk1</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>key</td>
<td>服务器的key</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123; &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span></span><br><span class="line">        <span class="string">"noRight"</span>:<span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h2 id="server包管理"><a href="#server包管理" class="headerlink" title="server包管理"></a><code>server</code>包管理</h2><h3 id="一建添加"><a href="#一建添加" class="headerlink" title="一建添加"></a>一建添加</h3><blockquote>
<p>需要linux环境才可能添加成功<br>请求示例</p>
</blockquote>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/op/autoAddServer.admin?name=fk_1&amp;hostKey=fk1&amp;path=/data/fk_1&amp;wssPort=12346&amp;adminPort=88000</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>serverKey</td>
<td>server包的key</td>
</tr>
<tr>
<td>hostKey</td>
<td>服务器域名的key</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: <span class="string">"succ"</span></span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="新增server包"><a href="#新增server包" class="headerlink" title="新增server包"></a>新增<code>server</code>包</h3><blockquote>
<p>脚本调用，后台管理不会调用此命令</p>
</blockquote>
<p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/op/newServer.admin?name=g1&amp;hostKey=fk1&amp;wssPort=12346&amp;adminPort=8800</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>name</td>
<td>包name</td>
</tr>
<tr>
<td>hostKey</td>
<td>服务器域名的key</td>
</tr>
<tr>
<td>path</td>
<td>服务器相对路径</td>
</tr>
<tr>
<td>wssPort</td>
<td>wss端口</td>
</tr>
<tr>
<td>adminPort</td>
<td>后台端口</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: <span class="string">"succ"</span></span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="server包列表"><a href="#server包列表" class="headerlink" title="server包列表"></a><code>server</code>包列表</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/op/serverList.admin</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>-</td>
<td>-</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;</span><br><span class="line">            <span class="attr">"pf"</span>: &#123;</span><br><span class="line">                <span class="attr">"servers"</span>: &#123;</span><br><span class="line">                    <span class="attr">"fk_1"</span>: &#123;</span><br><span class="line">                        <span class="attr">"name"</span>: <span class="string">"fk_1"</span>, </span><br><span class="line">                        <span class="attr">"hostKey"</span>: <span class="string">"fk1"</span>, </span><br><span class="line">                        <span class="attr">"path"</span>: <span class="string">"/data/fk_1"</span>, </span><br><span class="line">                        <span class="attr">"wssPort"</span>: <span class="number">12346</span>, </span><br><span class="line">                        <span class="attr">"adminPort"</span>: <span class="number">88000</span></span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h2 id="平台管理"><a href="#平台管理" class="headerlink" title="平台管理"></a>平台管理</h2><h3 id="添加平台类型"><a href="#添加平台类型" class="headerlink" title="添加平台类型"></a>添加平台类型</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/pf/addPft.admin?name=1&amp;nameCn=微端</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>name</td>
<td>平台类型的唯一标识</td>
</tr>
<tr>
<td>nameCn</td>
<td>平台类型的中文</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123; &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span></span><br><span class="line">        <span class="string">"noRight"</span>:<span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="删除平台类型"><a href="#删除平台类型" class="headerlink" title="删除平台类型"></a>删除平台类型</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/pf/delPft.admin?name=1</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>name</td>
<td>平台类型的唯一标识</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123; &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span></span><br><span class="line">        <span class="string">"noRight"</span>:<span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="修改平台类型"><a href="#修改平台类型" class="headerlink" title="修改平台类型"></a>修改平台类型</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/pf/upPft.admin?name=1&amp;nameCn=微端</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>name</td>
<td>平台类型的唯一标识</td>
</tr>
<tr>
<td>nameCn</td>
<td>平台类型的中文</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123; &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span></span><br><span class="line">        <span class="string">"noRight"</span>:<span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="查看平台类型"><a href="#查看平台类型" class="headerlink" title="查看平台类型"></a>查看平台类型</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/pf/viewPfts.admin</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>-</td>
<td>-</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;</span><br><span class="line">            <span class="attr">"pf"</span>: &#123;</span><br><span class="line">                <span class="attr">"pftMap"</span>: &#123;</span><br><span class="line">                    <span class="attr">"1"</span>: <span class="string">"微端"</span>, </span><br><span class="line">                    <span class="attr">"2"</span>: <span class="string">"小游戏"</span></span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>pftMap</td>
<td>平台类型的map</td>
</tr>
</tbody></table>
<h3 id="添加平台-渠道"><a href="#添加平台-渠道" class="headerlink" title="添加平台/渠道"></a>添加平台/渠道</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/pf/addPf.admin?name=7000005&amp;nameCn=疯狂&amp;typeName=1&amp;friend=7000004</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>name</td>
<td>平台name（唯一标识）</td>
</tr>
<tr>
<td>nameCn</td>
<td>平台中文</td>
</tr>
<tr>
<td>friend</td>
<td>主渠道（和哪个渠道混）</td>
</tr>
<tr>
<td>tyepName</td>
<td>平台类型</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;&#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="修改平台-渠道"><a href="#修改平台-渠道" class="headerlink" title="修改平台/渠道"></a>修改平台/渠道</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/pf/upPf.admin?name=7000005&amp;nameCn=疯狂1&amp;typeName=1&amp;friend=7000004</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>name</td>
<td>平台name（唯一标识）</td>
</tr>
<tr>
<td>nameCn</td>
<td>平台中文</td>
</tr>
<tr>
<td>friend</td>
<td>主渠道（和哪个渠道混）</td>
</tr>
<tr>
<td>tyepName</td>
<td>平台类型</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;&#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="查看平台-渠道"><a href="#查看平台-渠道" class="headerlink" title="查看平台/渠道"></a>查看平台/渠道</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/pf/viewPfs.admin?type=0</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>type</td>
<td>只能传0或者1。0:角色能看到的所有渠道；1:只能看到主渠道或者独服渠道</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;</span><br><span class="line">            <span class="attr">"pf"</span>: &#123;</span><br><span class="line">                <span class="attr">"pfs"</span>: [</span><br><span class="line">                    &#123;</span><br><span class="line">                        <span class="attr">"name"</span>: <span class="string">"70000010"</span>, </span><br><span class="line">                        <span class="attr">"nameCn"</span>: <span class="string">"疯狂12"</span>, </span><br><span class="line">                        <span class="attr">"games"</span>: [ ], </span><br><span class="line">                        <span class="attr">"typeName"</span>: <span class="string">"1"</span></span><br><span class="line">                    &#125;, </span><br><span class="line">                    &#123;</span><br><span class="line">                        <span class="attr">"name"</span>: <span class="string">"7000004"</span>, </span><br><span class="line">                        <span class="attr">"nameCn"</span>: <span class="string">"爱微游"</span>, </span><br><span class="line">                        <span class="attr">"games"</span>: [</span><br><span class="line">                            <span class="string">"20001"</span></span><br><span class="line">                        ], </span><br><span class="line">                        <span class="attr">"typeName"</span>: <span class="string">"1"</span></span><br><span class="line">                    &#125;, </span><br><span class="line">                    &#123;</span><br><span class="line">                        <span class="attr">"name"</span>: <span class="string">"7000005"</span>, </span><br><span class="line">                        <span class="attr">"nameCn"</span>: <span class="string">"疯狂e1"</span>, </span><br><span class="line">                        <span class="attr">"friend"</span>: <span class="string">"7000004"</span>, </span><br><span class="line">                        <span class="attr">"games"</span>: [ ], </span><br><span class="line">                        <span class="attr">"typeName"</span>: <span class="string">"1"</span></span><br><span class="line">                    &#125;</span><br><span class="line">                ]</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>name</td>
<td>平台唯一标识</td>
</tr>
<tr>
<td>nameCn</td>
<td>平台中文名</td>
</tr>
<tr>
<td>friend</td>
<td>混服主渠道为空是标识主渠道或者独服</td>
</tr>
<tr>
<td>games</td>
<td>渠道包含的所有分区</td>
</tr>
<tr>
<td>typeName</td>
<td>平台类型</td>
</tr>
</tbody></table>
<h3 id="删除平台-渠道（仅指定用户可以删除）"><a href="#删除平台-渠道（仅指定用户可以删除）" class="headerlink" title="删除平台/渠道（仅指定用户可以删除）"></a>删除平台/渠道（仅指定用户可以删除）</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/pf/delPf.admin?name=70000010</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>name</td>
<td>平台name</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;&#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="添加分区"><a href="#添加分区" class="headerlink" title="添加分区"></a>添加分区</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/pf/addGame.admin?pf=7000004&amp;name=20001&amp;nameCn=疯狂一区&amp;redis=192.168.0.37:6379&amp;server=rx2_&amp;openTime=1557201600000&amp;mysql=192.168.0.37:3306/g1</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>pf</td>
<td>平台唯一标识</td>
</tr>
<tr>
<td>name</td>
<td>分区唯一标识</td>
</tr>
<tr>
<td>nameCn</td>
<td>分区中文</td>
</tr>
<tr>
<td>redis</td>
<td>redis地址</td>
</tr>
<tr>
<td>server</td>
<td>server包的name</td>
</tr>
<tr>
<td>mysql</td>
<td>mysql地址</td>
</tr>
<tr>
<td>openTime</td>
<td>开区时间（需要用时间插件控制只是年月日，导出格式为unix时间戳到毫秒）</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;&#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="修改分区"><a href="#修改分区" class="headerlink" title="修改分区"></a>修改分区</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/pf/upGame.admin?pf=7000004&amp;name=1&amp;nameCn=疯狂一区&amp;redis=192.168.0.37:6379&amp;server=fk_1&amp;openTime=1557201600000&amp;mysql=192.168.0.37:3306/g1</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>name</td>
<td>分区唯一标识</td>
</tr>
<tr>
<td>nameCn</td>
<td>分区中文</td>
</tr>
<tr>
<td>wss</td>
<td>wss地址</td>
</tr>
<tr>
<td>redis</td>
<td>redis地址</td>
</tr>
<tr>
<td>serverIp</td>
<td>server所在服务器ip</td>
</tr>
<tr>
<td>serverPath</td>
<td>server所在服务器的绝对路径</td>
</tr>
<tr>
<td>optTime</td>
<td>开区时间（需要用时间插件控制只是年月日，导出格式为unix时间戳到毫秒）</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123; &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="删除分区（指定用户可以操作）"><a href="#删除分区（指定用户可以操作）" class="headerlink" title="删除分区（指定用户可以操作）"></a>删除分区（指定用户可以操作）</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/pf/delGame.admin?name=200010</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>name</td>
<td>分区name</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123; &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="查看指定渠道所有分区"><a href="#查看指定渠道所有分区" class="headerlink" title="查看指定渠道所有分区"></a>查看指定渠道所有分区</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/pf/viewGames.admin?pf=7000004</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>pf</td>
<td>平台name</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    &quot;data&quot;: &#123;</span><br><span class="line">        &quot;callback&quot;: true, </span><br><span class="line">        &quot;data&quot;: &#123;</span><br><span class="line">            &quot;pf&quot;: &#123;</span><br><span class="line">                &quot;games&quot;: [</span><br><span class="line">                    &#123;</span><br><span class="line">                        &quot;name&quot;: &quot;20001&quot;, </span><br><span class="line">                        &quot;nameCn&quot;: &quot;爱微游一区&quot;, </span><br><span class="line">                        &quot;pf&quot;: &quot;7000004&quot;, </span><br><span class="line">                        &quot;wss&quot;: &quot;wss:&#x2F;&#x2F;game.h5eco.com:12346&quot;, </span><br><span class="line">                        &quot;redis&quot;: &quot;192.168.0.37&quot;, </span><br><span class="line">                        &quot;serverIp&quot;: &quot;192.168.0.241&quot;, </span><br><span class="line">                        &quot;serverPath&quot;: &quot;&#x2F;data&#x2F;server_20001&quot;, </span><br><span class="line">                        &quot;open&quot;: false, </span><br><span class="line">                        &quot;openTime&quot;: &quot;1557201600000&quot;</span><br><span class="line">                    &#125;</span><br><span class="line">                ]</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;, </span><br><span class="line">        &quot;noLogin&quot;: false, </span><br><span class="line">        &quot;noRight&quot;: false</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>name</td>
<td>分区唯一标识</td>
</tr>
<tr>
<td>nameCn</td>
<td>分区中文</td>
</tr>
<tr>
<td>pf</td>
<td>平台唯一标识</td>
</tr>
<tr>
<td>wss</td>
<td>wss地址</td>
</tr>
<tr>
<td>redis</td>
<td>redis地址</td>
</tr>
<tr>
<td>serverIp</td>
<td>server所在服务器ip</td>
</tr>
<tr>
<td>serverPath</td>
<td>server所在服务器的绝对路径</td>
</tr>
<tr>
<td>optTime</td>
<td>开区时间（需要用时间插件控制只是年月日，导出格式为unix时间戳到毫秒）</td>
</tr>
</tbody></table>
<h3 id="开服"><a href="#开服" class="headerlink" title="开服"></a>开服</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/masterni/pf/startServer.admin?name=20001</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>name</td>
<td>分区name</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123; &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="停服"><a href="#停服" class="headerlink" title="停服"></a>停服</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/masterni/pf/stopServer.admin?name=20001</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>name</td>
<td>分区name</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123; &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h2 id="公告管理"><a href="#公告管理" class="headerlink" title="公告管理"></a>公告管理</h2><h3 id="添加公告"><a href="#添加公告" class="headerlink" title="添加公告"></a>添加公告</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/anno/up.admin?pfs=7000004_7000005&amp;anno=this is a anno</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>pfs</td>
<td>平台类型多个时用“_”隔开</td>
</tr>
<tr>
<td>anno</td>
<td>公告内容</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;&#125;</span><br><span class="line">        &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="公告列表"><a href="#公告列表" class="headerlink" title="公告列表"></a>公告列表</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/anno/view.admin</span><br></pre></td></tr></table></figure>

<p>成功返回示例</p>
<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>-</td>
<td>-</td>
</tr>
</tbody></table>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;</span><br><span class="line">            <span class="attr">"anno"</span>: &#123;</span><br><span class="line">                <span class="attr">"annos"</span>: &#123;</span><br><span class="line">                    <span class="attr">"7000004"</span>: <span class="string">"this is a anno"</span>, </span><br><span class="line">                    <span class="attr">"7000005"</span>: <span class="string">"this is a anno"</span></span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>annos</td>
<td>&lt;渠道name,公告内容&gt;</td>
</tr>
</tbody></table>
<h2 id="客户端版本管理"><a href="#客户端版本管理" class="headerlink" title="客户端版本管理"></a>客户端版本管理</h2><h3 id="查看ev"><a href="#查看ev" class="headerlink" title="查看ev"></a>查看ev</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/client/viewEv.admin</span><br></pre></td></tr></table></figure>

<p>成功返回示例</p>
<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>-</td>
<td>-</td>
</tr>
</tbody></table>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;</span><br><span class="line">            <span class="attr">"client"</span>: &#123;</span><br><span class="line">                <span class="attr">"evs"</span>: &#123;</span><br><span class="line">                    <span class="attr">"qq"</span>: <span class="string">"1"</span>, </span><br><span class="line">                    <span class="attr">"zj"</span>: <span class="string">"1"</span>, </span><br><span class="line">                    <span class="attr">"wx"</span>: <span class="string">"1"</span>, </span><br><span class="line">                    <span class="attr">"op"</span>: <span class="string">"1"</span>, </span><br><span class="line">                    <span class="attr">"wd"</span>: <span class="string">"1"</span></span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>wd</td>
<td>微端ev</td>
</tr>
<tr>
<td>wx</td>
<td>微信小游戏ev</td>
</tr>
<tr>
<td>op</td>
<td>oppo小游戏ev</td>
</tr>
<tr>
<td>qq</td>
<td>qq小游戏ev</td>
</tr>
<tr>
<td>zj</td>
<td>字节跳动小游戏ev</td>
</tr>
</tbody></table>
<h3 id="更新ev"><a href="#更新ev" class="headerlink" title="更新ev"></a>更新ev</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/client/upEv.admin?t=wd&amp;v=1</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>t</td>
<td>类型(目前仅支持{wd（微端）,wx（微信小游戏）,op（oppo小游戏）,qq（qq小游戏）,zj（字节跳动小游戏）})</td>
</tr>
<tr>
<td>v</td>
<td>版本号</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;&#125;</span><br><span class="line">        &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="更新通用gv"><a href="#更新通用gv" class="headerlink" title="更新通用gv"></a>更新通用gv</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/client/upGv.admin?v=1</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>v</td>
<td>版本号</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123; &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span></span><br><span class="line">        <span class="string">"noRight"</span>:<span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="查看通用gv"><a href="#查看通用gv" class="headerlink" title="查看通用gv"></a>查看通用gv</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/client/viewGv.admin</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>v</td>
<td>版本号</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;</span><br><span class="line">            <span class="attr">"client"</span>: &#123;</span><br><span class="line">                <span class="attr">"gv"</span>: <span class="string">"1"</span></span><br><span class="line">            &#125;</span><br><span class="line">        &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>gv</td>
<td>gv版本</td>
</tr>
</tbody></table>
<h3 id="添加区间gv"><a href="#添加区间gv" class="headerlink" title="添加区间gv"></a>添加区间gv</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/client/addSgv.admin?pf=7000004&amp;sgv=20001:1;20002-20005:2</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>pf</td>
<td>平台name</td>
</tr>
<tr>
<td>sgv</td>
<td>版本号希望添加个提示让运维按照我的格式填写格式内容为（20001 gv版本为xx 20002-20005 gv版本为gv版本yy 格式为： 20001:xx;20002-20005:yy ）</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123; &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span></span><br><span class="line">        <span class="string">"noRight"</span>:<span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="修改区间gv"><a href="#修改区间gv" class="headerlink" title="修改区间gv"></a>修改区间gv</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/client/upSgv.admin?pf=7000004&amp;sgv=20001:1;20002-20005:3</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>pf</td>
<td>平台name</td>
</tr>
<tr>
<td>sgv</td>
<td>版本号希望添加个提示让运维按照我的格式填写格式内容为（20001 gv版本为xx 20002-20005 gv版本为gv版本yy 格式为： 20001:xx;20002-20005:yy ）</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123; &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span></span><br><span class="line">        <span class="string">"noRight"</span>:<span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="查看区间gv"><a href="#查看区间gv" class="headerlink" title="查看区间gv"></a>查看区间gv</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/client/viewSgv.admin</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>v</td>
<td>版本号</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123;</span><br><span class="line">            <span class="attr">"client"</span>: &#123;</span><br><span class="line">                <span class="attr">"sgv"</span>: &#123;</span><br><span class="line">                    <span class="attr">"7000004"</span>: <span class="string">"20001:1;20002-20005:3"</span></span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span>, </span><br><span class="line">        <span class="attr">"noRight"</span>: <span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>sgv</td>
<td>区间版本的map</td>
</tr>
</tbody></table>
<h3 id="删除区间gv"><a href="#删除区间gv" class="headerlink" title="删除区间gv"></a>删除区间gv</h3><p>请求示例</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://192.168.0.246/mastern/client/delSgv.admin?pf=7000004</span><br></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th>参数</th>
<th>涵义</th>
</tr>
</thead>
<tbody><tr>
<td>pf</td>
<td>平台name</td>
</tr>
</tbody></table>
<p>成功返回示例</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">"data"</span>: &#123;</span><br><span class="line">        <span class="attr">"callback"</span>: <span class="literal">true</span>, </span><br><span class="line">        <span class="attr">"data"</span>: &#123; &#125;, </span><br><span class="line">        <span class="attr">"noLogin"</span>: <span class="literal">false</span></span><br><span class="line">        <span class="string">"noRight"</span>:<span class="literal">false</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
    </div>

    
    
    
      


      <footer class="post-footer">

        


        
      </footer>
    
  </article>
  
  
  

  </div>


          </div>
          
    <div class="comments" id="valine-comments"></div>

<script>
  window.addEventListener('tabs:register', () => {
    let activeClass = CONFIG.comments.activeClass;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#客户端api"><span class="nav-number">1.</span> <span class="nav-text">客户端api</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#获取ev"><span class="nav-number">1.1.</span> <span class="nav-text">获取ev</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#获取gv"><span class="nav-number">1.2.</span> <span class="nav-text">获取gv</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#获取游戏公告"><span class="nav-number">1.3.</span> <span class="nav-text">获取游戏公告</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#后台部分"><span class="nav-number">2.</span> <span class="nav-text">后台部分</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#后台登陆"><span class="nav-number">2.1.</span> <span class="nav-text">后台登陆</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#1-验证码"><span class="nav-number">2.1.1.</span> <span class="nav-text">1. 验证码</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#2-登陆"><span class="nav-number">2.1.2.</span> <span class="nav-text">2. 登陆</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#3-修改密码"><span class="nav-number">2.1.3.</span> <span class="nav-text">3. 修改密码</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#4-注销（退出登录）"><span class="nav-number">2.1.4.</span> <span class="nav-text">4. 注销（退出登录）</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#用户管理"><span class="nav-number">2.2.</span> <span class="nav-text">用户管理</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#获取用户信息"><span class="nav-number">2.2.1.</span> <span class="nav-text">获取用户信息</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#host管理"><span class="nav-number">2.3.</span> <span class="nav-text">host管理</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#添加host"><span class="nav-number">2.3.1.</span> <span class="nav-text">添加host</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#修改host"><span class="nav-number">2.3.2.</span> <span class="nav-text">修改host</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#查看host"><span class="nav-number">2.3.3.</span> <span class="nav-text">查看host</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#删除host"><span class="nav-number">2.3.4.</span> <span class="nav-text">删除host</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#server包管理"><span class="nav-number">2.4.</span> <span class="nav-text">server包管理</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#一建添加"><span class="nav-number">2.4.1.</span> <span class="nav-text">一建添加</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#新增server包"><span class="nav-number">2.4.2.</span> <span class="nav-text">新增server包</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#server包列表"><span class="nav-number">2.4.3.</span> <span class="nav-text">server包列表</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#平台管理"><span class="nav-number">2.5.</span> <span class="nav-text">平台管理</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#添加平台类型"><span class="nav-number">2.5.1.</span> <span class="nav-text">添加平台类型</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#删除平台类型"><span class="nav-number">2.5.2.</span> <span class="nav-text">删除平台类型</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#修改平台类型"><span class="nav-number">2.5.3.</span> <span class="nav-text">修改平台类型</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#查看平台类型"><span class="nav-number">2.5.4.</span> <span class="nav-text">查看平台类型</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#添加平台-渠道"><span class="nav-number">2.5.5.</span> <span class="nav-text">添加平台&#x2F;渠道</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#修改平台-渠道"><span class="nav-number">2.5.6.</span> <span class="nav-text">修改平台&#x2F;渠道</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#查看平台-渠道"><span class="nav-number">2.5.7.</span> <span class="nav-text">查看平台&#x2F;渠道</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#删除平台-渠道（仅指定用户可以删除）"><span class="nav-number">2.5.8.</span> <span class="nav-text">删除平台&#x2F;渠道（仅指定用户可以删除）</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#添加分区"><span class="nav-number">2.5.9.</span> <span class="nav-text">添加分区</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#修改分区"><span class="nav-number">2.5.10.</span> <span class="nav-text">修改分区</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#删除分区（指定用户可以操作）"><span class="nav-number">2.5.11.</span> <span class="nav-text">删除分区（指定用户可以操作）</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#查看指定渠道所有分区"><span class="nav-number">2.5.12.</span> <span class="nav-text">查看指定渠道所有分区</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#开服"><span class="nav-number">2.5.13.</span> <span class="nav-text">开服</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#停服"><span class="nav-number">2.5.14.</span> <span class="nav-text">停服</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#公告管理"><span class="nav-number">2.6.</span> <span class="nav-text">公告管理</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#添加公告"><span class="nav-number">2.6.1.</span> <span class="nav-text">添加公告</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#公告列表"><span class="nav-number">2.6.2.</span> <span class="nav-text">公告列表</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#客户端版本管理"><span class="nav-number">2.7.</span> <span class="nav-text">客户端版本管理</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#查看ev"><span class="nav-number">2.7.1.</span> <span class="nav-text">查看ev</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#更新ev"><span class="nav-number">2.7.2.</span> <span class="nav-text">更新ev</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#更新通用gv"><span class="nav-number">2.7.3.</span> <span class="nav-text">更新通用gv</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#查看通用gv"><span class="nav-number">2.7.4.</span> <span class="nav-text">查看通用gv</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#添加区间gv"><span class="nav-number">2.7.5.</span> <span class="nav-text">添加区间gv</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#修改区间gv"><span class="nav-number">2.7.6.</span> <span class="nav-text">修改区间gv</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#查看区间gv"><span class="nav-number">2.7.7.</span> <span class="nav-text">查看区间gv</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#删除区间gv"><span class="nav-number">2.7.8.</span> <span class="nav-text">删除区间gv</span></a></li></ol></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Fart"
      src="/images/avatar.jpg">
  <p class="site-author-name" itemprop="name">Fart</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">102</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">21</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">41</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/fengbrute" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;fengbrute" rel="noopener" target="_blank"><i class="fa fa-fw fa-github"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:fengbrute@qq.com" title="E-Mail → mailto:fengbrute@qq.com" rel="noopener" target="_blank"><i class="fa fa-fw fa-envelope"></i>E-Mail</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://weibo.com/fengbrute" title="Weibo → https:&#x2F;&#x2F;weibo.com&#x2F;fengbrute" rel="noopener" target="_blank"><i class="fa fa-fw fa-weibo"></i>Weibo</a>
      </span>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Fart</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-area-chart"></i>
    </span>
      <span class="post-meta-item-text">站点总字数：</span>
    <span title="站点总字数">155k</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-coffee"></i>
    </span>
      <span class="post-meta-item-text">站点阅读时长 &asymp;</span>
    <span title="站点阅读时长">6:29</span>
</div>


        






  <script>
  function leancloudSelector(url) {
    url = encodeURI(url);
    return document.getElementById(url).querySelector('.leancloud-visitors-count');
  }
  if (CONFIG.page.isPost) {
    function addCount(Counter) {
      var visitors = document.querySelector('.leancloud_visitors');
      var url = decodeURI(visitors.getAttribute('id'));
      var title = visitors.dataset.flagTitle;

      Counter('get', `/classes/Counter?where=${JSON.stringify({ url })}`)
        .then(response => response.json())
        .then(({ results }) => {
          if (results.length > 0) {
            var counter = results[0];
            Counter('put', '/classes/Counter/' + counter.objectId, { time: { '__op': 'Increment', 'amount': 1 } })
              .then(response => response.json())
              .then(() => {
                leancloudSelector(url).innerText = counter.time + 1;
              })
              .catch(error => {
                console.error('Failed to save visitor count', error);
              })
          } else {
              Counter('post', '/classes/Counter', { title, url, time: 1 })
                .then(response => response.json())
                .then(() => {
                  leancloudSelector(url).innerText = 1;
                })
                .catch(error => {
                  console.error('Failed to create', error);
                });
          }
        })
        .catch(error => {
          console.error('LeanCloud Counter Error', error);
        });
    }
  } else {
    function showTime(Counter) {
      var visitors = document.querySelectorAll('.leancloud_visitors');
      var entries = [...visitors].map(element => {
        return decodeURI(element.getAttribute('id'));
      });

      Counter('get', `/classes/Counter?where=${JSON.stringify({ url: { '$in': entries } })}`)
        .then(response => response.json())
        .then(({ results }) => {
          if (results.length === 0) {
            document.querySelectorAll('.leancloud_visitors .leancloud-visitors-count').forEach(element => {
              element.innerText = 0;
            });
            return;
          }
          for (let item of results) {
            let { url, time } = item;
            leancloudSelector(url).innerText = time;
          }
          for (let url of entries) {
            var element = leancloudSelector(url);
            if (element.innerText == '') {
              element.innerText = 0;
            }
          }
        })
        .catch(error => {
          console.error('LeanCloud Counter Error', error);
        });
    }
  }

  fetch('https://app-router.leancloud.cn/2/route?appId=Cu5hv7V1QMPq7AdjyURssVXX-gzGzoHsz')
    .then(response => response.json())
    .then(({ api_server }) => {
      var Counter = (method, url, data) => {
        return fetch(`https://${api_server}/1.1${url}`, {
          method,
          headers: {
            'X-LC-Id'     : 'Cu5hv7V1QMPq7AdjyURssVXX-gzGzoHsz',
            'X-LC-Key'    : 'toOnmwMBckjo5Jyi54jK5ejF',
            'Content-Type': 'application/json',
          },
          body: JSON.stringify(data)
        });
      };
      if (CONFIG.page.isPost) {
        if (CONFIG.hostname !== location.hostname) return;
        addCount(Counter);
      } else if (document.querySelectorAll('.post-title-link').length >= 1) {
        showTime(Counter);
      }
    });
  </script>


      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
  <script src="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/medium-zoom@1/dist/medium-zoom.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/lozad@1/dist/lozad.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/muse.js"></script>


<script src="/js/next-boot.js"></script>

<script src="/js/bookmark.js"></script>




  




  
<script src="/js/local-search.js"></script>









<script>
if (document.querySelectorAll('div.pdf').length) {
  NexT.utils.getScript('//cdn.jsdelivr.net/npm/pdfobject@2/pdfobject.min.js', () => {
    document.querySelectorAll('div.pdf').forEach(element => {
      PDFObject.embed(element.getAttribute('target'), element, {
        pdfOpenParams: {
          navpanes : 0,
          toolbar  : 0,
          statusbar: 0,
          pagemode : 'thumbs',
          view     : 'FitH'
        },
        PDFJS_URL: '/lib/pdf/web/viewer.html',
        height   : element.getAttribute('height') || '500px'
      });
    });
  }, window.PDFObject);
}
</script>


<script>
if (document.querySelectorAll('pre.mermaid').length) {
  NexT.utils.getScript('//cdn.jsdelivr.net/npm/mermaid@8/dist/mermaid.min.js', () => {
    mermaid.initialize({
      theme    : 'dark',
      logLevel : 3,
      flowchart: { curve     : 'linear' },
      gantt    : { axisFormat: '%m/%d/%Y' },
      sequence : { actorMargin: 50 }
    });
  }, window.mermaid);
}
</script>


  

  


<script>
NexT.utils.loadComments(document.querySelector('#valine-comments'), () => {
  NexT.utils.getScript('//unpkg.com/valine/dist/Valine.min.js', () => {
    var GUEST = ['nick', 'mail', 'link'];
    var guest = 'nick,mail,link';
    guest = guest.split(',').filter(item => {
      return GUEST.includes(item);
    });
    new Valine({
      el         : '#valine-comments',
      verify     : false,
      notify     : false,
      appId      : 'Cu5hv7V1QMPq7AdjyURssVXX-gzGzoHsz',
      appKey     : 'toOnmwMBckjo5Jyi54jK5ejF',
      placeholder: "Just go go",
      avatar     : 'mm',
      meta       : guest,
      pageSize   : '10' || 10,
      visitor    : false,
      lang       : 'zh-cn' || 'zh-cn',
      path       : location.pathname,
      recordIP   : true,
      serverURLs : ''
    });
  }, window.Valine);
});
</script>

</body>
</html>
